<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/Css/tools.css" rel="stylesheet" type="text/css"/>
<title>地板计算器_大泉州房产</title>
<script language='javascript' type='text/javascript'>
<!--
function IsDigit(cCheck)
{
 return ((('0'<=cCheck) && (cCheck<='9'))||cCheck=='.');
 }
function CheckNum(charValue,alertValue,obj)
{
	for(var iIndex=0;iIndex<charValue.length;iIndex++)
	{
		var cCheck=charValue.charAt(iIndex);
		if(!IsDigit(cCheck))
		{
		alert(alertValue);
		obj.focus();
		return false;
		}
	}
}
function GoTo(URL){
	if(location.href.toLowerCase().indexOf(URL.toLowerCase())<0) location.href = URL;
}
//-->
</script>
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function floor_brick(form)
{
 //检查输入
 if(checkfloorbrickInput(form)==false) return;
 var room_long=0,room_width=0,floorbrick_long=0,floorbrick_width=0;
 var floornum=0;
 var rate=0;
 //给各个变量赋值
 room_long=form.room_long.value*1000;
 room_width=form.room_width.value*1000;
 floor_long=form.floor_long.value;
 floor_width=form.floor_width.value;
 rate=form.rate.value;
 //开始计算

floornum=Math.round((room_long/floor_long)*(room_width/floor_width)*rate);
form.floornum.value=floornum;

 
}
function  checkfloorbrickInput(form)
{
	if(form.room_long.value==""){
		alert("请输入房间长度");
		form.room_long.focus();
		return false;
		}
	if(CheckNum(form.room_long.value,"房间长度只能输入数字格式！",form.room_long)==false)
	return false;


	if(form.room_width.value==""){
		alert("请输入房间宽度");
		form.room_width.focus();
		return false;
		}
	if(CheckNum(form.room_width.value,"房间宽度只能输入数字格式！",form.room_width)==false)
	return false;

	if(form.floor_long.value==""){
		alert("请输入地板的长度");
		form.floor_long.focus();
		return false;
		}
	if(CheckNum(form.floor_long.value,"窗户高度只能输入数字格式！",form.floor_long)==false)
	return false;

	if(form.floor_width.value==""){
		alert("请输入地板的宽度");
		form.floor_width.focus();
		return false;
		}
	if(CheckNum(form.floor_long.value,"地板的宽度只能输入数字格式！",form.floor_long)==false)
	return false;

}
function autoinput(form)
{
switch(parseInt(form.bricktype.value))
	{

		case 1:
		     form.floor_long.value=600;
			 form.floor_width.value=90;
		     break;
		case 2:
			 form.floor_long.value=750;
			 form.floor_width.value=90;
		     break;
		case 3:
			 form.floor_long.value=900;
			 form.floor_width.value=90;
		     break;
		case 4:
			 form.floor_long.value=1285;
			 form.floor_width.value=192;
	}
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<script type="text/javascript" src="/htmls/tools/images/js1.js">
//<!--

</script>
<script type="text/javascript">
//<!--
_S_pSt("");
//-->
</script>
<div class="pg">
  <!--上面-->
  <div class="logo1"><img src="/images/v1/common/logo.gif" /></div>
  <div class="logo2"><a href="/">首页</a><a href="/login.html">登录</a><a href="/reg.html">注册</a></div>
  <div class="dh"><img src="/images/v1/tools/ht.gif" /></div>
  <div class="dh1"><a href="/">房产首页</a>&gt;<a href="/jiaju.html">家装装修</a>&gt;<a href="/htmls/tools/jz1.htm">家装计算器</a>&gt;<a href="/htmls/tools/jz3.htm">地板计算器</a> </div>
  <!--中间-->
  <div class="main">
    <!--左边-->
    <div class="left">
      <div class="left1" style="margin-top:5px"><a href="/htmls/tools/jz1.htm">墙砖计算器</a></div>
      <div class="left1" style="margin-top:10px"><a href="/htmls/tools/jz2.htm" >地砖计算器</a></div>
      <div class="left1" style="margin-top:10px"><a href="/htmls/tools/jz3.htm" style="font-weight:bold">地板计算器</a></div>
      <div class="left1" style="margin-top:10px"><a href="/htmls/tools/jz4.htm">壁纸计算器</a></div>
      <div class="left1" style="margin-top:10px"><a href="/htmls/tools/jz5.htm">涂料计算器</a></div>
      <div class="left1" style="margin-top:10px"><a href="/htmls/tools/jz6.htm">窗帘计算器</a> </div>
    </div>
    <!--右边-->
    <div class="right1">
      <div class="r1">地板计算器</div>
      <div class="r2">
        <table>
          <tr>
            <td><form name="floorbrickfrm" action="" method="post">
                <table width="476" align="center" cellspacing="0" style="margin-top:10px;">
                  <tr>
                    <td class="title">1、请输入居室信息</td>
                  </tr>
                  <tr>
                    <td class="elem">房间长度
                      <INPUT name="room_long" class="inputinset">
                      米 </td>
                  </tr>
                  <tr>
                    <td class="elem">房间宽度
                      <INPUT name="room_width" class="inputinset">
                      米 </td>
                  </tr>
                  <tr>
                    <td class="title">2、请输入地板信息</td>
                  </tr>
                  <tr>
                    <td class="elem">地板长度
                      <INPUT name="floor_long" class="inputinset" value="600">
                      毫米 </td>
                  </tr>
                  <tr>
                    <td class="elem">地板宽度
                      <INPUT name="floor_width" class="inputinset" value="90">
                      毫米 </td>
                  </tr>
                  <tr>
                    <td class="elem"><span style="color:#FF6D11;">或选择标准规格的地板</span>
                      <SELECT class="inputinset" 
                  onchange="autoinput(this.form)" name="bricktype">
                        <OPTION 
                    value="1" selected>600x90x18</OPTION>
                        <OPTION 
                    value="2">750x90x18</OPTION>
                        <OPTION 
                    value="3">900x90x18</OPTION>
                        <OPTION 
                    value="4">1285x192x8</OPTION>
                      </SELECT>
                      毫米</td>
                  </tr>
                  <tr>
                    <td class="elem"><span style="color:#FF6D11;">地板类型</span>
                      <SELECT class="inputinset" id="rate" name="rate">
                        <OPTION value="1.08">实木地板</OPTION>
                        <OPTION value=1.05 
                    selected>复合地板</OPTION>
                      </SELECT>
                    </td>
                  </tr>
                  <tr>
                    <td height="7"></td>
                  </tr>
                  <tr>
                    <td height="21" bgcolor="#fcf2d5"><strong>计算结果</strong></td>
                  </tr>
                  <tr>
                    <td height="1"></td>
                  </tr>
                  <tr>
                    <td height="1" background="/images/v1/tools/12.gif"></td>
                  </tr>
                  <tr>
                    <td height="7"></td>
                  </tr>
                  <tr>
                    <td class="elem">你需要的地板数量是
                      <INPUT class="inputinset" name="floornum">
                      块 </td>
                  </tr>
                  <tr>
                    <td height="35" align="center"><input type="button" onclick="floor_brick(this.form)" value=" 计算">
                      &nbsp;
                      <input type="reset"  value=" 重算">
                    </td>
                  </tr>
                </table>
              </form></td>
          </tr>
        </table>
      </div>
      <div style="background-color:#fcf2d5;padding:10px 20px 10px 20px;color:#666; width:547; clear:both"> <span style="color:#ff5500;">提醒：</span>该地板计算器提供的结果仅供参考。购买时请以专业厂商提供的数据为准。 </div>
    </div>
  </div>
  <!--注脚-->
  <div class="footer">
    <div class="link3" align="center">
      <div><a href="/">QZFC简介</a><span>|</span><a href="/">用户注册</a><span>|</span> <a href="/"> 隐私声明</a><span>|</span><a href="/">服务条款</a><span>|</span><a href="/">合作加盟</a><span>|</span><a href="/">联系我们</a><span>|</span><a href="/">友情链接</a><span>|</span><a href="/">帮助中心</a></div>
      <div>中国·福建·泉州·丰泽区泉秀路宝成大厦1#&nbsp;&nbsp;&nbsp;客服电话：0595-24663003&nbsp;&nbsp;&nbsp;传真: 0595-22164848</div>
      <div>大泉州房产网 qzfc.com  版权所有 © 2008-2009</div>
    </div>
  </div>
</div>
</body>
</html>
